<div class="message <?php print $type; ?>">
    <h6><?php print ucfirst($type);?></h6>
	<ul>
		<?php
			foreach( $messages as $msg ){
				echo '<li>'.$msg.'</li>';
			}
		?>
	</ul>
</div>
